package com.thug.bo;

public class Shop {

	private boolean hasPunchingBalls = true;
	private State state = State.CLOSED;

	public State getState() {
		return state;
	}

	public boolean isHasPunchingBalls() {
		return hasPunchingBalls;
	}

	public void setHasPunchingBalls(boolean hasPunchingBalls) {
		this.hasPunchingBalls = hasPunchingBalls;
		if (hasPunchingBalls) {
			System.out.println("Has punching ball.");
		} else {
			System.out.println("No punching ball anymore. Hoping Chuck Norris will not come... :-/");
		}
	}

	public void open() {
		state = State.OPEN;
		System.out.println("Shop is open.");
	}

	public void destroy() {
		state = State.DESTROYED;
		System.out.println("Braouuuuum !!!");
	}

	public enum State {
		OPEN, CLOSED, DESTROYED;
	}
}
